/*    */ package handling.world.guild;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ import java.util.Comparator;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class MapleBBSThread
/*    */   implements Serializable {
/*    */   public static final long serialVersionUID = 3565477792085301248L;
/* 11 */   public final Map<Integer, MapleBBSReply> replies = new HashMap<>();
/*    */   public String name;
/*    */   public String text;
/*    */   public long timestamp;
/*    */   
/*    */   public MapleBBSThread(int localthreadID, String name, String text, long timestamp, int guildID, int ownerID, int icon) {
/* 17 */     this.localthreadID = localthreadID;
/* 18 */     this.name = name;
/* 19 */     this.text = text;
/* 20 */     this.timestamp = timestamp;
/* 21 */     this.guildID = guildID;
/* 22 */     this.ownerID = ownerID;
/* 23 */     this.icon = icon;
/*    */   }
/*    */   public int localthreadID; public int guildID; public int ownerID; public int icon;
/*    */   public int getReplyCount() {
/* 27 */     return this.replies.size();
/*    */   }
/*    */   
/*    */   public boolean isNotice() {
/* 31 */     return (this.localthreadID == 0);
/*    */   }
/*    */   
/*    */   public void setLocalthreadID(int id) {
/* 35 */     this.localthreadID = id;
/*    */   }
/*    */   
/*    */   public void setTitle(String name) {
/* 39 */     this.name = name;
/*    */   }
/*    */   
/*    */   public void setText(String text) {
/* 43 */     this.text = text;
/*    */   }
/*    */   
/*    */   public void setTimestamp(long timestamp) {
/* 47 */     this.timestamp = timestamp;
/*    */   }
/*    */   
/*    */   public void setGuildId(int guildID) {
/* 51 */     this.guildID = guildID;
/*    */   }
/*    */   
/*    */   public void setOwnerID(int ownerID) {
/* 55 */     this.ownerID = ownerID;
/*    */   }
/*    */   
/*    */   public void setIcon(int icon) {
/* 59 */     this.icon = icon;
/*    */   }
/*    */ 
/*    */   
/*    */   public static class ThreadComparator
/*    */     implements Comparator<MapleBBSThread>, Serializable
/*    */   {
/*    */     private static final long serialVersionUID = -3135067861031600111L;
/*    */     
/*    */     public int compare(MapleBBSThread o1, MapleBBSThread o2) {
/* 69 */       if (o1.localthreadID < o2.localthreadID)
/* 70 */         return 1; 
/* 71 */       if (o1.localthreadID == o2.localthreadID) {
/* 72 */         return 0;
/*    */       }
/* 74 */       return -1;
/*    */     }
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\world\guild\MapleBBSThread.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */